home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000145_news@newsmaster….columbia.edu _Tue Oct 13 19:47:02 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA23143
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 13 Oct 1998 19:47:01 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA11402
  7.     for kermit.misc@watsun; Tue, 13 Oct 1998 19:47:01 -0400 (EDT)
  8. Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!chippy.visi.com!news-out.visi.com!ptah.visi.com!visi.com!ekholm
  9. From: Mike Ekholm <ekholm@nospam.visi.com>
  10. Subject: Re: Kermit script
  11. Newsgroups: comp.protocols.kermit.misc
  12. References: <VqRU1.139$fE6.283188@ptah.visi.com>
  13. Organization: someplace that you are not at
  14. X-readme: why are you looking at my headers?
  15. X-snack: Try the new FOO.BAR. Now low fat!
  16. User-Agent: tin/pre-1.4-980514 (UNIX) (SunOS/5.6 (sun4u))
  17. Lines: 33
  18. Message-ID: <YCRU1.142$fE6.293106@ptah.visi.com>
  19. Date: Tue, 13 Oct 1998 23:46:00 GMT
  20. NNTP-Posting-Host: 209.98.98.8
  21. X-Complaints-To: abuse@visi.com
  22. X-Trace: ptah.visi.com 908322360 209.98.98.8 (Tue, 13 Oct 1998 18:46:00 CDT)
  23. NNTP-Posting-Date: Tue, 13 Oct 1998 18:46:00 CDT
  24. Xref: news.columbia.edu comp.protocols.kermit.misc:9336
  25.  
  26. On Tue, 13 Oct 1998 23:33:09 GMT, Mike Ekholm just had to say:
  27. : Hello.
  28. : I am attempting to write a simple script to sent the character "s" to the
  29. : serial port, then recive the the output from the serial port. I have
  30. : gotten the sending to work, but the recive part is not working. I have
  31. : tried the "input" command with no luck. if I do the script interactivly,
  32. : then do a "connect" I recive all the data I want, without doing anything
  33. : further. but the connect command is not very fun to use when doing this
  34. : non interactivly. What is the best way to have all the data recived from
  35. : the serial port go to stdout then have the script/kermit terminate?
  36.  
  37. Hello,
  38. I think I got it. here is what I did. basicly using the UPS prompts (=>):
  39.  
  40. #!/usr/local/bin/kermit
  41. set line /dev/cuaa0
  42. set speed 1200
  43. set exit warning off
  44. output s\13
  45. output s\13
  46. input 50 =>
  47. input 50 =>
  48. exit
  49.  
  50.  -Mike
  51.  
  52. -- 
  53.         ekholm@nospam.visi.com | http://www.visi.com/~ekholm | quake:Nalez
  54.         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55.           nospam is valid, filter provided by my isp http://www.visi.com  
  56.             Check my all new home page at http://www.visi.com/~ekholm/
  57.               640K ought to be enough for anybody! - Bill Gates, 1981
  58.                    Unix is user-friendly, not beginner-friendly.